/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-11-14
 * Time: 19:23
 */
public class NumDemo extends Num{

    //在继承父类Num时，重复定义，优先使用自己的定义
    int a = 10;
    int c = 3;

    public void print() {

        System.out.println("this.a is "+this.a);
        System.out.println("super.a is "+super.a);
        System.out.println("this.b is "+this.b);
        System.out.println("this.c is "+this.c);
    }
}
